<?php
	require_once("includes/init.inc.php");
	require_once("includes/api.tags.php");
	require_once("includes/api.sharing.php");
	
	mysql_connect(DB_HOST, DB_USERNAME, DB_PASSWD) or die(mysql_error());
	mysql_select_db(DB_NAME) or die(mysql_error());
	
	$title="Share a tag";
	include("includes/header.inc.php");
?>
				<td id="contenu" style="height:300px;">
					<!-- Contenu commence ici 
                    <form name="share" method="post" action="">
					<table border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td width="40%">Tags</td>
							<td>These users can access</td>
						</tr>
						<tr>
							<td width="60%"><?php
                            	$tabTag = get_all_tags_for_current_user(false);
								$options = "";
								foreach($tabTag as $row){
									$options .= '<option value="'.$row["id"].'" />'.$row["name"].'</option>';
								}
								echo '<select name="tag" size="'.count($tabTag).'">'.$options.'</select>';
							?></td>
							<td>
                            	<input type="text" name="username" value="" />
                            </td>
						</tr>
					</table>
                    </form>
					Contenu fini ici -->
					<center>En construction !</center>
				</td>
<?php
	include("includes/footer.inc.php");
?>